package com.example.demo.demos;

import org.springframework.context.annotation.AnnotationConfigApplicationContext;

public class TestMain {
    private static AnnotationConfigApplicationContext context;

    public static void main(String[] args) {
        context = new AnnotationConfigApplicationContext(ConditionConfig.class);
        MessagePrint mp = context.getBean(MessagePrint.class);
        System.out.println(mp.showMessage());
        context.close();
    }
}
